package myzzyl.controller.customer;

import cn.dev33.satoken.stp.StpUtil;
import io.swagger.v3.oas.annotations.tags.Tag;
import myzzyl.response.BaseResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/customer/reservation")
@Tag(name = "客户预约管理")
public class ReservationController {


    @GetMapping("/cancelled-count")
    public BaseResponse<Integer> getCancelledReservationCount() {
//        Long userId = JwtUserContext.getJwtUser().getId();
        long userId = StpUtil.getLoginIdAsLong();
        System.out.println(userId+"---------------------");
        return BaseResponse.success(1);
    }

}